Prev | Next

Changing Flag Attributes

<< | >>

Choosing Between Right And Left Meshing

Overview

Each mesh grid rectangle is converted into two triangles by connecting two opposite corners.

By default, the top-left corner is connected to the bottom-right corner. This is called "Right" meshing.

You may also choose "Left" meshing, which connects the upper-right corner to the lower-left corner.

The two images below show the difference between "Right" meshing and "Left" meshing.


Right Meshing


Left Meshing

What Bad Meshing Looks Like

The Meshing parameter in the 3D Flag Options window determines in which direction the flag geometry is created. Choosing the right meshing direction is important, as this section will demonstrate.

  1. Open the "Quick Start.aep" project.
  2. In the Effect Controls window, find the Color From Layer parameter and select "None." This action will remove the "Red Cross.jpg" image from the flag and make the flag larger (640x480, the size of the layer the 3D Flag plug-in was applied to).
  3. Locate the Lock Edges parameter and select "Right." This will cause three of the points on the right side of the flag to be locked into place. The left points are no longer locked.

    Where did the flag go? Since the wind is still blowing to the right, the flag is blowing off screen. Let's fix that.
  4. From the Direction Presets menu, select "Left." This will make the wind blow to the left, causing the flag to blow back into the frame. We now have flag that is locked on the right edge blowing to the left.

    Immediately, we can see a reason why the default "Right" meshing does not work for this scene.



    The stair-step effect is an artifact of the way the flag mesh is built. To fix this, we'll switch the direction of our meshing.

Fixing Bad Meshing

  1. Open the Options window by clicking the 3D Flag logo in the Effect Controls window.



    As the animation plays, you can see the bad meshing all over the flag.
  2. Pause the animation by pressing the spacebar.
  3. Locate the Meshing menu and select "Left." This will change how the flag geometry is created, smoothing out the look of the flag.
  4. Click the OK button accept the change in settings and to exit the Options window.



    The "Flag" Comp looks much better now. You now know that a left-blowing flag probably needs "Left" meshing.

Choosing The Correct Meshing Direction

As you've seen, the meshing direction can dramatically change the look of the flag. Depending on which points on the flag are locked and which direction the wind is blowing, "Left" meshing may look better than "Right" meshing.

NOTE: As a general rule, you should see if you animation looks fine with the default meshing. If it doesn't, try switching the meshing direction.

The table below advises which meshing may work best when a particular flag edge is locked.

Locked Edge

Wind Direction

Suggested Meshing

Left

Any

Right

Right

Any

Left

Top

Right
Left
Forward
Back

Right
Left
Right
Left

Bottom

Right
Left
Forward
Back

Left
Right
Right
Left

Now that you've learned how to change a flag's mesh settings, we will show you how to change other flag parameters. We'll start with Flag Presets in Making A Rubbery Flag With Presets.